home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / utility / horst_2.zip / LOGECHO.DOC < prev    next >
Text File  |  1995-12-18  |  1KB  |  39 lines

  1. ------------------------------------------------------------------------
  2. LOGECHO   Echo with date/time        Ver 1.1 (c) 1994 Horst Schaeffer
  3. ------------------------------------------------------------------------
  4.  
  5. LOGECHO was designed to produce custom entries for logfiles: all parts
  6. of the time and date information can be used as individual data.
  7. The program can also be used to get these data into variables.
  8.  
  9. LOGECHO, like ECHO, is used with (double!) >> redirection symbols.
  10. Tokens (see help with /?, observe upper/lower case!):
  11.  
  12.     $D  day         $h  hour
  13.     $M  month (01..12)    $m  minutes
  14.     $N  month (Jan..Dec)    $s  seconds
  15.     $Y  year        $c  sec/100
  16.     $W  day of week (Sun..Sat)
  17.     $w  day of week (0..6)
  18.     $$  '$'
  19.  
  20. Examples:
  21.     LOGECHO ----------  $W $D $N $Y, FDNC>> FD.LOG
  22.     LOGECHO # $h:$m:$s  GUS %NL% node\>> FD.LOG
  23.  
  24.  
  25. Use LOGECHO for variables:
  26.  
  27. To generate a variable with YYMMDD for example, just produce the
  28. appropriate SET command:
  29.  
  30.     LOGECHO set FN=$Y$M$D> temp.bat
  31.     call TEMP
  32.  
  33. Or for a RENAME:
  34.  
  35.     LOGECHO ren FILES.BBS $Y$M$D.BBS> temp.bat
  36.     call TEMP
  37.  
  38. = 17 FEB 1995
  39.